#!/bin/bash
#function: yum install mysql 5.7
#parmeter:
#author: yeslf
#version: 1.0
#Test: CentOS6
yum erase -y mysql-libs
mkdir /tmp
chmod 777 /tmp
mkdir -p /var/lock/subsys/
touch /etc/sysconfig/network
yum install -y  initscripts  mysql-community-client mysql-community-common mysql-community-devel \
mysql-community-libs mysql-community-libs-compat mysql-community-server 

yum clean all


rm -rf /var/lib/mysql/*
